<?php

namespace common\models\feedback;

use Yii;

/**
 * This is the model class for table "{{%feedback_forget}}".
 *
 * @property int $id 用户ID
 * @property int $user_id 用户ID
 * @property int $type 关系类型，0关注，-1黑名单，1朋友
 * @property int $type_id
 * @property string $username
 * @property string $photo
 * @property string $mobile
 * @property string $idcardno
 * @property int $admin_id
 * @property string $remark 备注
 * @property int $status
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class FeedbackForget extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%feedback_forget}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'type', 'type_id', 'admin_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['username', 'mobile', 'idcardno'], 'required'],
            [['username'], 'string', 'max' => 50],
            [['photo', 'mobile', 'idcardno'], 'string', 'max' => 255],
            [['remark'], 'string', 'max' => 30],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => '用户ID',
            'user_id' => '用户ID',
            'type' => '关系类型，0关注，-1黑名单，1朋友',
            'type_id' => 'Type ID',
            'username' => 'Username',
            'photo' => 'Photo',
            'mobile' => 'Mobile',
            'idcardno' => 'Idcardno',
            'admin_id' => 'Admin ID',
            'remark' => '备注',
            'status' => 'Status',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
